package com.martin.study.create_instance.bean;

import com.martin.study.create_instance.test.AutowireByNameBean;
import org.springframework.beans.factory.annotation.Autowire;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.FilterType;

@ComponentScan(value = "com.martin.study.create_instance.bean", excludeFilters = {@ComponentScan.Filter(type = FilterType.ASSIGNABLE_TYPE, value={CircularDependBean.class})})
public class ApplicationConfig {
	@Bean(autowire= Autowire.BY_NAME)
	public AutowireByNameBean autowireByNameBean(){
		return new AutowireByNameBean();
	}
}
